import { $axios } from '@/utils/http';

// 获取评价表
export async function getAdsList(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/ads-post/getAdsList',
    method: 'GET',
    params,
  });
}

// 管理员审批通过商家的广告投放申请
export async function approvalAds(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/ads-post/approvalAds',
    method: 'GET',
    params,
  });
}

// 退回广告投放
export async function returnAds(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/ads-post/returnAds',
    method: 'POST',
    params,
  });
}

// 申请广告投放
export async function addAds(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/ads-post/addAds',
    method: 'POST',
    params,
  });
}
